package factory.abstract_factory;

public class Test {
    public static void main(String[] args) {
        Factory1 factory1 = new Factory1();
        ProductA a1 = factory1.createA();
        ProductB b1 = factory1.createB();

        a1.use();
        b1.use();

        Factory2 factory2 = new Factory2();
        ProductA a2 = factory2.createA();
        ProductB b2 = factory2.createB();

        a2.use();
        b2.use();
    }
}
